package com.javafactroy.kunlong.codefactroy.service.domain.valueobj;

import com.javafactroy.kunlong.codefactroy.service.stringtemplate.StringTemplate;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class ColPropValueObj {

    StringTemplate stringTemplate = new StringTemplate();

    public ColPropValueObj putParam(String key, Object value) {
        stringTemplate.putParam(key, value);
        return this;
    }

    String colProp = "\t\t<result column=\"${colName}\" property=\"${propName}\" jdbcType=\"${jdbcType}\" />";

    public String toCodeString() {
        return colProp;
    }
}
